home *** CD-ROM | disk | FTP | other *** search
/ GameSpot.it / GameSpot Italia (2001).bin / demo / severancedemo / data1.cab / Program_Files / Maps / Ragnar_M2 / puertas.py < prev    next >
Text File  |  2000-10-13  |  24KB  |  833 lines

  1. import Doors
  2. import Levers
  3. import Locks
  4. import Objects
  5. import Sounds
  6. import Sparks
  7. import AuxFuncs
  8. import darfuncs
  9. import Stars
  10. import Bladex
  11.  
  12.  
  13. ###### Definici≤n de los sonidos de todas las puertas -incluyendo las objeto-
  14.  
  15. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  16. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  17. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  18.  
  19. sonidorastrillo=Sounds.CreateEntitySound("..\\..\\Sounds\\rastrillo.wav", "SonidoRastrillo")
  20. golpemetalmediano=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-metal-mediano.wav", "GolpeMetalMediano")
  21.  
  22.  
  23. ##### Mazmorras #####
  24.  
  25. ##definici≤n rastrillos: 3 puertas con cerraduras propias que se abren con la misma llave##
  26.  
  27. rastmaz1=Bladex.CreateEntity("RastMaz1","Rastrillo10",-88758.822862,5491.538943,75705.631400) # esteeeeeeeeeeeeeeeeeeeeeeeeeeeeee
  28. rastmaz1.Static=0
  29. rastmaz1.Scale=1.2
  30. rastmaz1.Orientation=0.707107,0.707107,0.000000,0.000000
  31. Sparks.SetMetalSparkling("RastMaz1")
  32.  
  33. rastmaz1din=Objects.CreateDinamicObject("RastMaz1")
  34.  
  35.  
  36. rastmaz2=Bladex.CreateEntity("RastMaz2","Rastrillo10",-101774.938931,5491.538943,75744.824997) # -101774 esteeeeeeeeeeeeeeeeeeeeeeeeeeeeee
  37. rastmaz2.Static=0
  38. rastmaz2.Scale=1.2
  39. rastmaz2.Orientation=0.707107,0.707107,0.000000,0.000000
  40. Sparks.SetMetalSparkling("RastMaz2")
  41.  
  42. rastmaz2din=Objects.CreateDinamicObject("RastMaz2")
  43.  
  44.  
  45. rastmaz3=Bladex.CreateEntity("RastMaz3","Rastrillo10",-111756.722871,5238.099278,75723.752896) # esteeeeeeeeeeeeeeeeeeeeeeeeeeeeee
  46. rastmaz3.Static=0
  47. rastmaz3.Scale=1.3
  48. rastmaz3.Orientation=0.707107,0.707107,0.000000,0.000000
  49. Sparks.SetMetalSparkling("RastMaz3")
  50.  
  51. rastmaz3din=Objects.CreateDinamicObject("RastMaz3")
  52.  
  53.  
  54.  
  55. #la,la,la...
  56.  
  57.  
  58. ###cerraduras rastrillos###
  59.  
  60. ##cerradura 1##
  61.  
  62. cerradura1=Locks.PlaceLock("cerradura1","Cerraduracutre",(-85810.175000,7737.455251,74388.046911),(0.504344,0.504344,0.495618,-0.495618),2.5)
  63. cerradura1.key="llavemaz"
  64.  
  65.  
  66. cerradura1.OnUnLockFunc=Abrerastmaz1
  67. cerradura1.OnUnLockArgs=()
  68.  
  69. cerradura1.OnLockFunc=Cierrarastmaz1
  70. cerradura1.OnLockArgs=()
  71.  
  72. darfuncs.SetHint(cerradura1.obj,"Dungeon Lock")
  73.  
  74.  
  75. ##cerradura 2##
  76.  
  77. cerradura2=Locks.PlaceLock("cerradura2","Cerraduracutre",(-99030.357156,7737.455251,74388.046911),(0.495618,0.495618,0.504344,-0.504344),2.5)
  78. cerradura2.key="llavemaz"
  79.  
  80.  
  81. cerradura2.OnUnLockFunc=Abrerastmaz2
  82. cerradura2.OnUnLockArgs=()
  83.  
  84. cerradura2.OnLockFunc=Cierrarastmaz2
  85. cerradura2.OnLockArgs=()
  86.  
  87. darfuncs.SetHint(cerradura2.obj,"Dungeon Lock")
  88.  
  89.  
  90. ##cerradura 3##
  91.  
  92. cerradura3=Locks.PlaceLock("cerradura3","Cerraduracutre",(-108745.911000,7698.883000,74488.046911),(0.504344,0.504344,0.495618,-0.495618),2.5)
  93. cerradura3.key="llavemaz"
  94.  
  95.  
  96. cerradura3.OnUnLockFunc=Abrerastmaz3
  97. cerradura3.OnUnLockArgs=()
  98.  
  99. cerradura3.OnLockFunc=Cierrarastmaz3
  100. cerradura3.OnLockArgs=()
  101.  
  102. darfuncs.SetHint(cerradura3.obj,"Dungeon Lock")
  103.  
  104.  
  105.  
  106. ###########PUERTA DE MADERA QUE SE CIERRA SOLA
  107.  
  108.  
  109. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  110. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  111. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  112.  
  113.  
  114. puertaen=Doors.CreateDoor("Puertaen", (-95250,6000,69250), (0,1,0), 1000, 4500, Doors.CLOSED)
  115. puertaen.Squezze = 1
  116.  
  117. puertaen.opentype=Doors.UNIF
  118. puertaen.o_med_vel=-500
  119. puertaen.o_med_displ=3500
  120.  
  121.  
  122. puertaen.closetype=Doors.AC
  123. puertaen.c_init_displ=3500
  124. puertaen.c_med_vel=8000
  125.  
  126.  
  127. puertaen.SetWhileOpenSound(maderadesliz)
  128. puertaen.SetEndOpenSound(maderagolpe)
  129.  
  130.  
  131.  
  132.  
  133. cerraduren=Locks.PlaceLock("cerraduren","Cerraduracutre",(-96518.142662,8014.579554,66352.351684),(0.012341,0.012341,0.706999,-0.706999),3.0)
  134. cerraduren.key="llavemaz"
  135.  
  136. cerraduren.OnUnLockFunc=AbrePuertaLlaveen
  137. cerraduren.OnUnLockArgs=()
  138.  
  139. darfuncs.SetHint(cerraduren.obj,"Dungeon Lock")
  140.     
  141. puertaen.SetWhileCloseSound(maderadesliz)
  142. puertaen.SetEndCloseSound(maderagolpe2)
  143.  
  144.  
  145. sen=Bladex.GetSector(-86750,6000,69550)
  146. sen.OnEnter=CierraPuertaLlaveen    
  147.     
  148. ##Llave mazmorras##
  149.  
  150. o=Bladex.CreateEntity("llavemaz","Llavecutre",-113243.050546, 7949.07025002, 68889.022358,"Physic")
  151. o.Scale=1.25
  152. o.Orientation=0.0730228796601, -0.990972220898, 0.0152629939839, 0.111394353211
  153. o.Data = 4
  154. darfuncs.SetHint(o,"Dungeon Key")
  155. Stars.Twinkle("llavemaz")
  156.  
  157.  
  158.  
  159. ##### Puerta antes del puente levadizo #####
  160.  
  161.  
  162. puerta1=Doors.CreateDoor("Puerta1", (-88500,-11000,-10750), (0,1,0), 1250, 6550, Doors.CLOSED)
  163. puerta1.Squezze = 1
  164.  
  165. puerta1.opentype=Doors.UNIF
  166. puerta1.o_med_vel=-500
  167. puerta1.o_med_displ=5300
  168.  
  169.  
  170. puerta1.closetype=Doors.AC
  171. puerta1.c_init_displ=5300
  172. puerta1.c_med_vel=16000
  173.  
  174.  
  175. puerta1.SetWhileOpenSound(maderadesliz)
  176. puerta1.SetEndOpenSound(maderagolpe)
  177.  
  178. puerta1.SetWhileCloseSound(maderadesliz)
  179. puerta1.SetEndCloseSound(maderagolpe2)
  180.  
  181. ##### Accionar puertas al accionar una palanca
  182.  
  183.  
  184. palancap1=Levers.PlaceLever("PalancaP1",Levers.LeverType3,(-91444.539027,-8758.090546,-9613.706792),(0.000000,0.000000,0.707107,-0.707107),1.0)
  185.  
  186. palancap1.mode=1
  187.  
  188.  
  189. palancap1.OnTurnOnFunc=AbrePuerta1
  190. palancap1.OnTurnOnArgs=()
  191.  
  192. palancap1.OnTurnOffFunc=CierraPuerta1
  193. palancap1.OnTurnOffArgs=()
  194.  
  195. p1yaabierta=0
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. ########################################
  203.  
  204. ##### Puerta de la sala del muerto #####
  205.  
  206.  
  207. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  208. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  209. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  210.  
  211.  
  212. puerta2=Doors.CreateDoor("Puerta2", (-94750,-2000,8750), (0,1,0), 1250, 7250, Doors.CLOSED)
  213. puerta2.Squezze = 1
  214.  
  215. puerta2.opentype=Doors.UNIF
  216. puerta2.o_med_vel=-500
  217. puerta2.o_med_displ=6000
  218.  
  219.  
  220.  
  221.  
  222. puerta2.SetWhileOpenSound(maderadesliz)
  223. puerta2.SetEndOpenSound(maderagolpe)
  224.  
  225.  
  226.  
  227. ###llave2 abrepuerta de la capilla###
  228.  
  229.  
  230. cerradurp2=Locks.PlaceLock("cerradurp2","Cerraduracutre",(-92987.928000,-1034.547000,12841.838000),(0.707107,0.707107,0.000000,0.000000),3.0)
  231. cerradurp2.key="Llavep2"
  232.  
  233. cerradurp2.OnUnLockFunc=AbrePuertaLlave2
  234. cerradurp2.OnUnLockArgs=()
  235.  
  236.  
  237. darfuncs.SetHint(cerradurp2.obj,"Chapel Lock")
  238.  
  239.  
  240. llavep2=Bladex.CreateEntity("Llavep2","Llavecutre",-90000,-100,12000)
  241. llavep2.Static=0
  242. llavep2.Scale=1.0
  243. llavep2.Orientation=0.998135,0.061049,0.000000,0.000000
  244. darfuncs.SetHint(llavep2,"Chapel Key")
  245.  
  246.  
  247.  
  248.  
  249.  
  250. ########################################
  251.  
  252. ##### Puerta de la salida de las mazmorras. Llave con los bichitos. #####
  253.  
  254.  
  255.  
  256.  
  257. darfuncs.MuertoyTroceado(-153061.854683, 12865.8698322, 45745.3463,"Knight_Traitor","",(1,5))
  258.  
  259.  
  260.  
  261. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  262. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  263. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  264.  
  265.  
  266. puerta3=Doors.CreateDoor("Puerta3", (-130500,2000,39750), (0,1,0), 1750, 5750, Doors.CLOSED)
  267. puerta3.Squezze = 1
  268.  
  269. puerta3.opentype=Doors.UNIF
  270. puerta3.o_med_vel=-500
  271. puerta3.o_med_displ=4000
  272.  
  273.  
  274. puerta3.closetype=Doors.AC
  275. puerta3.c_init_displ=4000
  276. puerta3.c_med_vel=16000
  277.  
  278.  
  279. puerta3.SetWhileOpenSound(maderadesliz)
  280. puerta3.SetEndOpenSound(maderagolpe)
  281.  
  282.  
  283. puerta3.SetWhileCloseSound(maderadesliz)
  284. puerta3.SetEndCloseSound(maderagolpe2)
  285.  
  286.  
  287. ###llave3 abrepuerta del almacen despues de las mazmorras. Esta con el muerto de los bichitos###
  288.  
  289.  
  290. cerradurp3=Locks.PlaceLock("cerradurp3","Cerraduracutre",(-127863.176852,3568.350091,38703.646319),(0.500000,0.500000,0.500000,-0.500000),3.0)
  291. cerradurp3.key="llave3"
  292.  
  293.  
  294. cerradurp3.OnUnLockFunc=AbrePuertaLlave3
  295. cerradurp3.OnUnLockArgs=()
  296.  
  297. cerradurp3.OnLockFunc=CierraPuertaLlave3
  298. cerradurp3.OnLockArgs=()
  299.  
  300. darfuncs.SetHint(cerradurp3.obj,"Store Lock")
  301.  
  302.  
  303. o=Bladex.CreateEntity("llave3","Llavecutre",-154151.508147, 14223.9556277, 46118.353)
  304. o.Static=0
  305. o.Scale=1.0
  306. o.Orientation=0.998135,0.061049,0.000000,0.000000
  307. Stars.Twinkle("llave3")
  308. darfuncs.SetHint(o,"Store Key")
  309.  
  310. sspl33=Bladex.GetSector(-79754.3550954, -7868.72272905, 66913.56)
  311. sspl33.OnEnter=CierraPuertaLlave33
  312.  
  313.  
  314.  
  315. ########################################
  316. ##### Puertas 4 y 5.  Salida al patio 1. Reentrada a las mazmorras   #####
  317.  
  318. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  319. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  320. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  321.  
  322.  
  323. puerta4=Doors.CreateDoor("Puerta4", (-83750,-8750,72000), (0,1,0), 0, 4000, Doors.CLOSED)
  324. puerta4.Squezze = 1
  325.  
  326. puerta4.opentype=Doors.UNIF
  327. puerta4.o_med_vel=-500
  328. puerta4.o_med_displ=4000
  329.  
  330.  
  331. puerta4.closetype=Doors.AC
  332. puerta4.c_init_displ=4000
  333. puerta4.c_med_vel=16000
  334.  
  335.  
  336. puerta4.SetWhileOpenSound(maderadesliz)
  337. puerta4.SetEndOpenSound(maderagolpe)
  338.  
  339. puerta4.SetWhileCloseSound(maderadesliz)
  340. puerta4.SetEndCloseSound(maderagolpe2)
  341.  
  342.  
  343.  
  344. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  345. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  346. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  347.  
  348. puerta5=Doors.CreateDoor("Puerta5", (-72250,-8000,74250), (0,1,0), 0, 4500, Doors.CLOSED)
  349. puerta5.Squezze = 1
  350.  
  351. puerta5.opentype=Doors.UNIF
  352. puerta5.o_med_vel=-500
  353. puerta5.o_med_displ=4500
  354.  
  355.  
  356. puerta5.closetype=Doors.AC
  357. puerta5.c_init_displ=4500
  358. puerta5.c_med_vel=16000
  359.  
  360.  
  361. puerta5.SetWhileOpenSound(maderadesliz)
  362. puerta5.SetEndOpenSound(maderagolpe)
  363.  
  364. puerta5.SetWhileCloseSound(maderadesliz)
  365. puerta5.SetEndCloseSound(maderagolpe2)
  366.  
  367. ###llave45 abre las puertas 4 y 5. La tiene un guardia###
  368.  
  369.  
  370. cerradurp4=Locks.PlaceLock("cerradurp4","Cerraduracutre",(-82957.465438,-7961.074879,74742.192663),(0.707107,0.707107,0.000000,0.000000),3.0)
  371. cerradurp4.key="llave45"
  372.  
  373.  
  374. cerradurp4.OnUnLockFunc=AbrePuertaLlave4
  375. cerradurp4.OnUnLockArgs=()
  376.  
  377. cerradurp4.OnLockFunc=CierraPuertaLlave4
  378. cerradurp4.OnLockArgs=()
  379.  
  380. darfuncs.SetHint(cerradurp4.obj,"Iron Lock")
  381.  
  382. ###
  383.  
  384. cerradurp5=Locks.PlaceLock("cerradurp5","Cerraduracutre",(-73401.325930,-8079.158707,71283.088834),(0.006171,0.006171,0.707080,-0.707080),3.0)
  385. cerradurp5.key="llave45"
  386.  
  387.  
  388. cerradurp5.OnUnLockFunc=AbrePuertaLlave5
  389. cerradurp5.OnUnLockArgs=()
  390.  
  391. cerradurp5.OnLockFunc=CierraPuertaLlave5
  392. cerradurp5.OnLockArgs=()
  393.  
  394. darfuncs.SetHint(cerradurp5.obj,"Iron Lock")
  395.  
  396.  
  397.  
  398. o=Bladex.CreateEntity("llave45","Llavecutre",-84250,-6327.856076,40500)
  399. o.Static=0
  400. o.Scale=1.0
  401. o.Orientation=0.998135,0.061049,0.000000,0.000000
  402. o.Data = 2
  403. darfuncs.SetHint(o,"Iron Key")
  404.  
  405.  
  406. ########################################################################
  407. ##########puerta 6. Almacen del patio de la torre de Ragnar#############
  408. ########################################################################
  409.  
  410.  
  411. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  412. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  413. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  414.  
  415.  
  416. puerta6=Doors.CreateDoor("Puerta6", (-91000,6000,-99500), (0,1,0), 0, 4000, Doors.CLOSED)
  417. puerta6.Squezze = 1
  418.  
  419. puerta6.opentype=Doors.UNIF
  420. puerta6.o_med_vel=-500
  421. puerta6.o_med_displ=4000
  422.  
  423.  
  424. puerta6.closetype=Doors.AC
  425. puerta6.c_init_displ=4000
  426. puerta6.c_med_vel=5000
  427.  
  428. puerta6.SetWhileOpenSound(maderadesliz)
  429. puerta6.SetEndOpenSound(maderagolpe)
  430.  
  431. puerta6.SetWhileCloseSound(maderadesliz)
  432. puerta6.SetEndCloseSound(maderagolpe2)
  433.  
  434. ### Ademas en esta habitacion hay una armadura como recompensa, asi que...
  435.  
  436. armaduraencontrada=0
  437.  
  438.  
  439.  
  440. ########################################################################
  441. ##########puerta 9. planta1 de la torre de Ragnar. Se cierra sola#############
  442. ########################################################################
  443.  
  444.  
  445. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  446. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  447. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  448.  
  449.  
  450. puerta9=Doors.CreateDoor("Puerta9", (-137250,-7000,-90500), (0,1,0), 1000, 4250, Doors.CLOSED)
  451. puerta9.Squezze = 1
  452.  
  453. puerta9.opentype=Doors.UNIF
  454. puerta9.o_med_vel=-1000
  455. puerta9.o_med_displ=3250
  456.  
  457.  
  458. puerta9.closetype=Doors.AC
  459. puerta9.c_init_displ=3250
  460. puerta9.c_med_vel=5000
  461.  
  462. puerta9.SetWhileOpenSound(maderadesliz)
  463. puerta9.SetEndOpenSound(maderagolpe)
  464.  
  465. puerta9.SetWhileCloseSound(maderadesliz)
  466. puerta9.SetEndCloseSound(maderagolpe2)
  467.  
  468. ###llave69 abre la puerta 6 y la puerta 9. La tiene alguien dentro de la torre###
  469. ##################################################################
  470.  
  471. cerradurp6=Locks.PlaceLock("cerradurp6","Cerraduracutre",(-91514.778462,6076.404939,-97287.666247),(0.000000,0.000000,0.707107,-0.707107),3.0)
  472. cerradurp6.key="llave69"
  473.  
  474.  
  475. cerradurp6.OnUnLockFunc=AbrePuertaLlave6
  476. cerradurp6.OnUnLockArgs=()
  477.  
  478. cerradurp6.OnLockFunc=CierraPuertaLlave6
  479. cerradurp6.OnLockArgs=()
  480.  
  481. darfuncs.SetHint(cerradurp6.obj,"Tower Lock")
  482.  
  483. ##################################################################
  484.  
  485. cerradurp9=Locks.PlaceLock("cerradurp9","Cerraduracutre",(-135387.315561,-6096.250250,-88527.786406),(0.500000,0.500000,0.500000,-0.500000),3.0)
  486. cerradurp9.key="llave69"
  487.  
  488.  
  489. cerradurp9.OnUnLockFunc=AbrePuertaLlave9
  490. cerradurp9.OnUnLockArgs=()
  491.  
  492. cerradurp9.OnLockFunc=CierraPuertaLlave9
  493. cerradurp9.OnLockArgs=()
  494.  
  495. darfuncs.SetHint(cerradurp9.obj,"Tower Lock")
  496.  
  497.  
  498.  
  499. o=Bladex.CreateEntity("llave69","Llavecutre",-127040.098559,1617.641023,-105496.828495)
  500. o.Static=0
  501. o.Scale=1.0
  502. o.Orientation=0.998135,0.061049,0.000000,0.000000
  503. o.Data = 2
  504. darfuncs.SetHint(o,"Tower Key")
  505.  
  506. ########################################################################
  507. ##########puerta 7. Sala de los arcos con bandas#############
  508. ########################################################################
  509.  
  510.  
  511. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  512. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  513. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  514.  
  515.  
  516. puerta7=Doors.CreateDoor("Puerta7", (-87000,500,-31250), (0,1,0), 1500, 5750, Doors.CLOSED)
  517. puerta7.Squezze = 1
  518.  
  519. puerta7.opentype=Doors.UNIF
  520. puerta7.o_med_vel=-500
  521. puerta7.o_med_displ=4250
  522.  
  523. """
  524. puerta7.closetype=Doors.AC
  525. puerta7.c_init_displ=4250
  526. puerta7.c_med_vel=7000
  527. """
  528.  
  529. puerta7.SetWhileOpenSound(maderadesliz)
  530. puerta7.SetEndOpenSound(maderagolpe)
  531. """
  532. puerta7.SetWhileCloseSound(maderadesliz)
  533. puerta7.SetEndCloseSound(maderagolpe2)
  534. """
  535. ###llave7 abre la puerta 7. La tiene alguien dentro de la sala octogonal###
  536. ###########################################################################
  537.  
  538. cerradurp7=Locks.PlaceLock("cerradurp7","Cerraduracutre",(-83764.215626,1777.484320,-33524.661116),(0.000000,0.000000,0.707107,-0.707107),3.0)
  539. cerradurp7.key="llave7"
  540.  
  541. cerradurp7.OnUnLockFunc=AbrePuertaLlave7
  542. cerradurp7.OnUnLockArgs=()
  543. """
  544. cerradurp7.OnLockFunc=CierraPuertaLlave7
  545. cerradurp7.OnLockArgs=()
  546. """
  547. darfuncs.SetHint(cerradurp7.obj,"Armoury Lock")
  548.  
  549.  
  550.  
  551. o=Bladex.CreateEntity("llave7","Llavecutre",-86918.280796,2976.630982,-34863.485703)
  552. o.Static=0
  553. o.Scale=1.0
  554. o.Orientation=0.998135,0.061049,0.000000,0.000000
  555.  
  556. darfuncs.SetHint(o,"Armoury Key")
  557.  
  558. ########################################################################
  559. ##########puerta 8. Sala del almacen del segundo patio. Palanca#############
  560. ########################################################################
  561.  
  562.  
  563. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  564. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  565. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  566.  
  567.  
  568. puerta8=Doors.CreateDoor("Puerta8", (-129750,-8000,38750), (0,1,0), 1500, 5500, Doors.CLOSED)
  569. puerta8.Squezze = 1
  570.  
  571. puerta8.opentype=Doors.UNIF
  572. puerta8.o_med_vel=-500
  573. puerta8.o_med_displ=4000
  574.  
  575.  
  576. puerta8.closetype=Doors.AC
  577. puerta8.c_init_displ=4000
  578. puerta8.c_med_vel=7000
  579.  
  580.  
  581. puerta8.SetWhileOpenSound(maderadesliz)
  582. puerta8.SetEndOpenSound(maderagolpe)
  583.  
  584. puerta8.SetWhileCloseSound(maderadesliz)
  585. puerta8.SetEndCloseSound(maderagolpe2)
  586.  
  587. ##### Accionar puertas al accionar una palanca
  588.  
  589.  
  590. palancap8=Levers.PlaceLever("PalancaP8",Levers.LeverType3,(-126260.966300,-6113.997534,36626.459578),(0.707107,0.707107,0.000000,0.000000),1.0)
  591.  
  592. palancap8.mode=1
  593.  
  594.  
  595. palancap8.OnTurnOnFunc=AbrePuerta8
  596. palancap8.OnTurnOnArgs=()
  597.  
  598. palancap8.OnTurnOffFunc=CierraPuerta8
  599. palancap8.OnTurnOffArgs=()
  600.  
  601.  
  602. ########################################################################
  603. ##########puerta 10. Sala de la torre. Piso 3░#############
  604. ########################################################################
  605.  
  606.  
  607. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  608. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  609. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  610.  
  611.  
  612. puerta10=Doors.CreateDoor("Puerta10", (-128000,-14000,-111750), (0,1,0), 1500, 5000, Doors.CLOSED)
  613. puerta10.Squezze = 1
  614.  
  615. puerta10.opentype=Doors.UNIF
  616. puerta10.o_med_vel=-500
  617. puerta10.o_med_displ=3500
  618.  
  619. """
  620. puerta10.closetype=Doors.AC
  621. puerta10.c_init_displ=3500
  622. puerta10.c_med_vel=7000
  623. """
  624.  
  625. puerta10.SetWhileOpenSound(maderadesliz)
  626. puerta10.SetEndOpenSound(maderagolpe)
  627. """
  628. puerta10.SetWhileCloseSound(maderadesliz)
  629. puerta10.SetEndCloseSound(maderagolpe2)
  630. """
  631. ###llave10 abre la puerta 10. La tiene alguien dentro de la torrre###
  632. ###########################################################################
  633.  
  634. cerradurp10=Locks.PlaceLock("cerradurp10","Cerraduracutre",(-128756.914800,-12660.046839,-114511.077255),(0.000000,0.000000,0.707107,-0.707107),3.0)
  635. cerradurp10.key="llave10"
  636.  
  637. cerradurp10.OnUnLockFunc=AbrePuertaLlave10
  638. cerradurp10.OnUnLockArgs=()
  639. """
  640. cerradurp10.OnLockFunc=CierraPuertaLlave10
  641. cerradurp10.OnLockArgs=()
  642. """
  643. darfuncs.SetHint(cerradurp10.obj,"Second Tower Lock")
  644.  
  645.  
  646.  
  647. o=Bladex.CreateEntity("llave10","Llavecutre",-133161.732031,-11525.213021,-113645.872297)
  648. o.Static=0
  649. o.Scale=1.0
  650. o.Orientation=0.998135,0.061049,0.000000,0.000000
  651. darfuncs.SetHint(o,"Second Tower Key")
  652.  
  653.  
  654.  
  655. ###################################
  656. ##### Paso de los patios 1, 2 #####
  657. ###################################
  658. ##Rastrillo. Paso de los patios con la palanca##
  659.  
  660. sonidorastrillo=Sounds.CreateEntitySound("..\\..\\Sounds\\rastrillo.wav", "SonidoRastrillo")
  661. golpemetalmediano=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-metal-mediano.wav", "GolpeMetalMediano")
  662.  
  663. rastpat=Bladex.CreateEntity("RastPat","Rastrillo2",-93506.868269,-5795.806818,33073.282030)
  664. rastpat.Static=0
  665. rastpat.Scale=1.347849
  666. rastpat.Orientation=0.707107,0.707107,0.000000,0.000000
  667. Sparks.SetMetalSparkling("RastPat")
  668.  
  669. rastpatdin=Objects.CreateDinamicObject("RastPat")
  670.  
  671.  
  672. ##### Abrir el rastrillo al accionar una palanca
  673.  
  674.  
  675. palancpat=Levers.PlaceLever("PalancPat",Levers.LeverType3,(-99110.657607,-13171.500743,36757.886050),(0.504344,0.504344,0.495618,-0.495618),1.0)
  676.  
  677. palancpat.mode=3
  678.  
  679.  
  680. palancpat.OnTurnOnFunc=Abrerastpat
  681. palancpat.OnTurnOnArgs=()
  682.  
  683. palancpat.OnTurnOffFunc=Cierrarastpat
  684. palancpat.OnTurnOffArgs=()
  685.  
  686.  
  687.  
  688. ##Rastrillo. Al final del puente levadizo##
  689.  
  690. sonidorastrillo=Sounds.CreateEntitySound("..\\..\\Sounds\\rastrillo.wav", "SonidoRastrillo")
  691. golpemetalmediano=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-metal-mediano.wav", "GolpeMetalMediano")
  692.  
  693. rastfin=Bladex.CreateEntity("RastFin","Rastrillo2",-104495.077333,-5947.048300,-73074.970156)
  694. rastfin.Static=0
  695. rastfin.Scale=1.798710
  696. rastfin.Orientation=0.707107,0.707107,0.000000,0.000000
  697. Sparks.SetMetalSparkling("RastFin")
  698.  
  699. rastfindin=Objects.CreateDinamicObject("RastFin")
  700.  
  701. sr1=Bladex.GetSector(-99500,0,-84250)
  702. sr1.OnEnter=Cierrarastfin
  703.  
  704.  
  705. #######
  706. #######puerta del Caballero del Caos######
  707. ##################
  708.  
  709.  
  710.  
  711. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  712. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  713. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  714.  
  715.  
  716. puertacaos=Doors.CreateDoor("PuertaCaos", (-119000,0,-99500), (0,1,0), 1500, 5000, Doors.CLOSED)
  717. puertacaos.Squezze = 1
  718.  
  719. puertacaos.opentype=Doors.UNIF
  720. puertacaos.o_med_vel=-500
  721. puertacaos.o_med_displ=3500
  722. """
  723. puertacaos.closetype=Doors.AC
  724. puertacaos.c_init_displ=3500
  725. puertacaos.c_med_vel=7000
  726. """
  727. puertacaos.SetWhileOpenSound(maderadesliz)
  728. puertacaos.SetEndOpenSound(maderagolpe)
  729. """
  730. puertacaos.SetWhileCloseSound(maderadesliz)
  731. puertacaos.SetEndCloseSound(maderagolpe2)
  732.  
  733.  
  734. sc=Bladex.GetSector(-138750,-7000,-90550)
  735. sc.OnEnter=CierraPuertaCaos
  736. """
  737.  
  738.  
  739.  
  740. #######################
  741. #######################
  742. ######## PUERTA FINAL##
  743. ###SALA DE RAGNAR######
  744.  
  745.  
  746. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  747. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  748. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  749.  
  750.  
  751. puertaragnar=Doors.CreateDoor("PuertaRagnar", (-142250,-32000,-95250), (0,1,0), 1000, 5000, Doors.OPENED)
  752.  
  753. puertaragnar.closetype=Doors.AC
  754. puertaragnar.c_init_displ=4000
  755. puertaragnar.c_med_vel=7000
  756.  
  757. puertaragnar.SetWhileCloseSound(maderadesliz)
  758. puertaragnar.SetEndCloseSound(maderagolpe2)
  759.  
  760.  
  761. #######RASTRILLO SECRETO RAGNAR
  762.  
  763.  
  764. sonidorastrillo=Sounds.CreateEntitySound("..\\..\\Sounds\\rastrillo.wav", "SonidoRastrillo")
  765. golpemetalmediano=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-metal-mediano.wav", "GolpeMetalMediano")
  766.  
  767. rastrag=Bladex.CreateEntity("RastRag","Rastrillo",-133896.547000,-32188.615000,-90728.480000)
  768. rastrag.Static=0
  769. rastrag.Scale=0.658419
  770. rastrag.Orientation=0.500000,0.500000,0.500000,-0.500000
  771. Sparks.SetMetalSparkling("RastRag")
  772.  
  773. rastragdin=Objects.CreateDinamicObject("RastRag")
  774.  
  775.  
  776.  
  777. ###llave que abre el rastrillo ragnar
  778.  
  779.  
  780. cerradurfin=Locks.PlaceLock("cerradurfin","Cerraduracobox",(-132993.165255,-31606.005571,-89309.311947),(0.707107,0.707107,0.000000,0.000000),1.5)
  781. cerradurfin.key="llaverag"
  782.  
  783.  
  784. cerradurfin.OnUnLockFunc=Abrerastrag
  785. cerradurfin.OnUnLockArgs=()
  786.  
  787.  
  788.  
  789. o=Bladex.CreateEntity("llaverag","Llavecobox",-130634.811458,-30524.391957,-90038.124563)
  790. o.Static=0
  791. o.Scale=1.0
  792. o.Orientation=0.999453,-0.016495,-0.028670,0.000210
  793.  
  794. darfuncs.SetHint(o,"Ragnar Key")
  795.  
  796.  
  797. ####################
  798. ####################
  799. ###########PUERTA EN EL PATIO DE LOS TRES CABALLEROS
  800.  
  801. maderadesliz=Sounds.CreateEntitySound("..\\..\\Sounds\\puerta-madera-deslizando.wav", "MaderaDesliz")
  802. maderagolpe=Sounds.CreateEntitySound("..\\..\\Sounds\\dist-dungeon-door2.wav", "MaderaGolpe")
  803. maderagolpe2=Sounds.CreateEntitySound("..\\..\\Sounds\\golpe-madera-pesada.wav", "MaderaGolpe2")
  804.  
  805.  
  806. puertatres=Doors.CreateDoor("PuertaTres", (-121000,-7000,48000), (0,0,1), 0, 3500, Doors.CLOSED)
  807.  
  808. puertatres.opentype=Doors.UNIF
  809. puertatres.o_med_vel=-500
  810. puertatres.o_med_displ=3500
  811.  
  812. puertatres.SetWhileOpenSound(maderadesliz)
  813. puertatres.SetEndOpenSound(maderagolpe)
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.